<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" >
        var obj = {
            name:"古巨基",
            age:19,
            fun :function (){
                alert("无参函数" + this.age + "\n年龄：" + this.name);
            }
        }
        obj.fun();
    </script>
</head>
<body>

</body>
</html>